package team.nmsg.ge.system.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.hibernate.Session;
import org.springframework.beans.factory.annotation.Autowired;

public class NMSDaoSupport {
	
	@Autowired
	@PersistenceContext
	protected EntityManager em;
	
	public Session getHSession() {
		
		Session session = em.unwrap(Session.class);
		
		return session;
		
	}
	
	
}
